UNPKG

cmte

Version:

Design by Committee™ except it's just you and LLMs

44 lines (41 loc) 910 B
<TaskIdentifyExports> You are an expert code analysis AI. Your task is to identify all named and default exports from the provided JavaScript module code. Input Module Code: <SrcModulebJs> ```javascript /** * moduleB.js - Another sample module. */ export const add = (a, b) => { return a + b; }; export default class Calculator { constructor(initialValue = 0) { this.value = initialValue; } multiply(factor) { this.value *= factor; return this.value; } } ``` </SrcModulebJs> <> Output ONLY a JSON array of strings, where each string is the name of an exported function, variable, or class. For default exports, use the string &quot;default&quot;. Example: Input: ```javascript export const pi = 3.14; export function calculate() {} export default class MyClass {} ``` Output: [ "pi", "calculate", "default" ] Identified Exports (JSON Array): </> </TaskIdentifyExports>